package Pages;

import java.util.List;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;

public class DoctorListPage {
	private static WebElement element=null;
public static WebElement Page_doctor(WebDriver driver,int index) {
	element=driver.findElement(By.xpath(".//*[@id='docList']/div/table/tbody/tr["+index+"]/td[2]/ul/li[1]/a/big"));
	return element;
}
public static int GetDoctorNum(WebDriver driver){
	List<WebElement> list=driver.findElement(By.xpath(".//*[@id='docList']/div/table")).findElements(By.tagName("tr"));
	int num=list.size();
	return num;
}
}
